[Improve] Reduce chat memory retained during long sessions - #1466
[Improve] Reduce chat memory retained during long sessions#1466zoomote[bot] wants to merge 1 commit into
Conversation
Review statusThis PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging. Current step: Resolve the merge conflicts. The review sequence resumes after the branch is mergeable. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What changed
Why this change was made
Long-running webview sessions repeatedly deserialize the same message and history strings, while old React closures can retain prior task state. This implements the linked optimization proof of concept with stricter lifecycle handling and regression coverage suitable for production.
Impact
Chat behavior and appearance are unchanged. The webview can release prior-task message data more reliably and avoid retaining duplicate completed-message and history strings, reducing memory pressure during long sessions.